From: Petr Kadlec Date: Wed, 15 Oct 2014 20:52:40 +0000 (+0200) Subject: Fix copy/pasto in API help and a typo in message name X-Git-Tag: 1.31.0-rc.0~13600 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=51fea41c70b760db70bf7d7a52bb43c46e74e049;p=lhc%2Fweb%2Fwiklou.git Fix copy/pasto in API help and a typo in message name * The help for [[Special:ApiHelp/xml]] used the same copypasted apihelp-json-param-callback message for both parameters instead of the correct ones for those parameters. * The message name in en.json and qqq.json was truncated, so that it did not correspond to the parameter name. I presume this was unintentional and not some strange limitation. Change-Id: I666b2fd6511f08bccc9f05739bab68d7675ef5c6 --- diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index 4ed4944cf7..7010dd6a4a 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -238,11 +238,11 @@ class ApiFormatXml extends ApiFormatBase { public function getAllowedParams() { return array( 'xslt' => array( - ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-callback', + ApiBase::PARAM_HELP_MSG => 'apihelp-xml-param-xslt', ), 'includexmlnamespace' => array( ApiBase::PARAM_DFLT => false, - ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-callback', + ApiBase::PARAM_HELP_MSG => 'apihelp-xml-param-includexmlnamespace', ), ); } diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index 6c4542590a..c871be0b46 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -37,7 +37,7 @@ "apihelp-wddxfm-description": "Output data in WDDX format (pretty-print in HTML).", "apihelp-xml-description": "Output data in XML format.", "apihelp-xml-param-xslt": "If specified, adds <xslt> as stylesheet. This should be a wiki page in the MediaWiki namespace whose page name ends with \".xsl\".", - "apihelp-xml-param-includexmlnamespac": "If specified, adds an XML namespace.", + "apihelp-xml-param-includexmlnamespace": "If specified, adds an XML namespace.", "apihelp-xmlfm-description": "Output data in XML format (pretty-print in HTML).", "apihelp-yaml-description": "Output data in YAML format.", "apihelp-yamlfm-description": "Output data in YAML format (pretty-print in HTML).", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index a4dfd7c076..0b10779202 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -35,7 +35,7 @@ "apihelp-wddxfm-description": "{{doc-apihelp-description|wddxfm|seealso=* {{msg-mw|apihelp-wddx-description}}}}", "apihelp-xml-description": "{{doc-apihelp-description|xml|seealso=* {{msg-mw|apihelp-xmlfm-description}}}}", "apihelp-xml-param-xslt": "{{doc-apihelp-param|xml|xslt}}", - "apihelp-xml-param-includexmlnamespac": "{{doc-apihelp-param|xml|includexmlnamespac}}", + "apihelp-xml-param-includexmlnamespace": "{{doc-apihelp-param|xml|includexmlnamespace}}", "apihelp-xmlfm-description": "{{doc-apihelp-description|xmlfm|seealso=* {{msg-mw|apihelp-xml-description}}}}", "apihelp-yaml-description": "{{doc-apihelp-description|yaml|seealso=* {{msg-mw|apihelp-yamlfm-description}}}}", "apihelp-yamlfm-description": "{{doc-apihelp-description|yamlfm|seealso=* {{msg-mw|apihelp-yaml-description}}}}",